Skip to main content

General WSS Information

Base Address

wss://stream.xt.com/notice


Request Headers

WebSocket connections must include the compression extension protocol header:

Sec-Websocket-Extensions: permessage-deflate

Example

Python

# Example: Connect using websocket-client
from websocket import create_connection

ws = create_connection(
"wss://stream.xt.com/notice",
header=["Sec-Websocket-Extensions: permessage-deflate"]
)

print("Connected to XT WebSocket server.")

Response

{
"event": "subscribe",
"channel": "notice",
"status": "success"
}